package com.hefeng.wx.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

@Data
@TableName("sys_areas")
public class SysAreas {
        /** 主键 */

        @TableId(value = "id",type = IdType.INPUT)
        @JsonFormat(shape = JsonFormat.Shape.STRING)
        @ApiModelProperty(name = "主键",notes = "")
        private Integer id ;
        /** 父级编码 */
        @ApiModelProperty(name = "父级编码",notes = "")
        private String pCode ;
        /** 编码 */
        @ApiModelProperty(name = "编码",notes = "")
        private String code ;
        /** 名称 */
        @ApiModelProperty(name = "名称",notes = "")
        private String name ;
        /** 等级 */
        @ApiModelProperty(name = "等级",notes = "")
        private Integer level ;

        /** 主键 */
        public Integer getId(){
            return this.id;
        }
        /** 主键 */
        public void setId(Integer id){
            this.id=id;
        }
        /** 父级编码 */
        public String getPCode(){
            return this.pCode;
        }
        /** 父级编码 */
        public void setPCode(String pCode){
            this.pCode=pCode;
        }
        /** 编码 */
        public String getCode(){
            return this.code;
        }
        /** 编码 */
        public void setCode(String code){
            this.code=code;
        }
        /** 名称 */
        public String getName(){
            return this.name;
        }
        /** 名称 */
        public void setName(String name){
            this.name=name;
        }
        /** 等级 */
        public Integer getLevel(){
            return this.level;
        }
        /** 等级 */
        public void setLevel(Integer level){
            this.level=level;
        }

}
